package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Gametype implements Serializable {
    private String gtno;

    private String gtname;

    private String gtimg;

    private String gtdescribe;

    private Integer gtstate;

    private static final long serialVersionUID = 1L;

    public String getGtno() {
        return gtno;
    }

    public void setGtno(String gtno) {
        this.gtno = gtno;
    }

    public String getGtname() {
        return gtname;
    }

    public void setGtname(String gtname) {
        this.gtname = gtname;
    }

    public String getGtimg() {
        return gtimg;
    }

    public void setGtimg(String gtimg) {
        this.gtimg = gtimg;
    }

    public String getGtdescribe() {
        return gtdescribe;
    }

    public void setGtdescribe(String gtdescribe) {
        this.gtdescribe = gtdescribe;
    }

    public Integer getGtstate() {
        return gtstate;
    }

    public void setGtstate(Integer gtstate) {
        this.gtstate = gtstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Gametype other = (Gametype) that;
        return (this.getGtno() == null ? other.getGtno() == null : this.getGtno().equals(other.getGtno()))
            && (this.getGtname() == null ? other.getGtname() == null : this.getGtname().equals(other.getGtname()))
            && (this.getGtimg() == null ? other.getGtimg() == null : this.getGtimg().equals(other.getGtimg()))
            && (this.getGtdescribe() == null ? other.getGtdescribe() == null : this.getGtdescribe().equals(other.getGtdescribe()))
            && (this.getGtstate() == null ? other.getGtstate() == null : this.getGtstate().equals(other.getGtstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGtno() == null) ? 0 : getGtno().hashCode());
        result = prime * result + ((getGtname() == null) ? 0 : getGtname().hashCode());
        result = prime * result + ((getGtimg() == null) ? 0 : getGtimg().hashCode());
        result = prime * result + ((getGtdescribe() == null) ? 0 : getGtdescribe().hashCode());
        result = prime * result + ((getGtstate() == null) ? 0 : getGtstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gtno=").append(gtno);
        sb.append(", gtname=").append(gtname);
        sb.append(", gtimg=").append(gtimg);
        sb.append(", gtdescribe=").append(gtdescribe);
        sb.append(", gtstate=").append(gtstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}